<template>
  <div class="container">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>
<script setup>
</script>
<style scoped lang='scss'>
.container {
  width: 100%;
  background-image: url(../assets/images/banner2.jpg);
  background-size: cover;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  &::before {
    content: "";
    position: absolute; /* 绝对定位覆盖整个容器 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(25, 186, 254, 0.3); /* 浅蓝色 + 30%透明度 */
    /* 若需要更朦胧的效果，可添加模糊滤镜（可选） */
    /* backdrop-filter: blur(2px); */
    z-index: 1; /* 确保遮罩在背景图上方、内容下方 */
  }

  .left {
    width: 520px;
    position: relative;
    z-index: 2;
  }
  .right {
    width: 520px;
    text-align: right;
    position: relative;
    z-index: 2;
  }
}
</style>
